package exercise.examples.Chapter4.teacher;

public class Teacher {


    private static String name;
    private static boolean gender;
    private int age;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public boolean isGender() {
        return gender;
    }

    public void setGender(boolean gender) {
        this.gender = gender;
    }

    public Teacher(String a, boolean b, int c){
        this.name=a;
        this.age=c;
        this.gender=b;
    }
    void birthday(){
        System.out.println("It is my birthday today!");
        age++;
    }
    void selfIntroduction(){
        System.out.println("My name is "+name+".");
        if(gender) System.out.println("I am female.");
        else System.out.println("I am male.");
        System.out.println("I am "+age+" year(s) old.");
    }
    public void lecturing(){
        System.out.println("Give lecture!");
    }

    public static void main(String[] args) {
        Teacher t=new Teacher("Nobody",true,40);
        t.setName("Anybody");
        t.lecturing();
    }

}
class Student{

}
